package net.streaming.rtp;


public class RtpHead {
    private int CSRC_count;		//4;
    private int extension;		//1;
    private int padding;		//1;
    private int version;		//2;
    /**//* byte 1 */
    
    private int payload_type;	//7;
    private int marker;			//1;
    /**//* bytes 2*/
    
    private short seq_num;//2 bytes;
    
    private int timestamp;//4 bytes;
    
    private int SSRC;	//4 bytes;
    
    public RtpHead() {}
	
	public int getCSRC_count() {
		return CSRC_count;
	}
	public void setCSRC_count(int csrc_len) {
		this.CSRC_count = csrc_len;
	}
	public int getExtension() {
		return extension;
	}
	public void setExtension(int extension) {
		this.extension = extension;
	}
	public int getPadding() {
		return padding;
	}
	public void setPadding(int padding) {
		this.padding = padding;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	public int getPayload_type() {
		return payload_type;
	}
	public void setPayload_type(int payload) {
		this.payload_type = payload;
	}
	public int getMarker() {
		return marker;
	}
	public void setMarker(int marker) {
		this.marker = marker;
	}
	public short getSeq_num() {
		return seq_num;
	}
	public void setSeq_num(short seq_no) {
		this.seq_num = seq_no;
	}

	public int getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(int timestamp) {
		this.timestamp = timestamp;
	}

	public int getSSRC() {
		return SSRC;
	}

	public void setSSRC(int sSRC) {
		SSRC = sSRC;
	}

	@Override
	public String toString() {
		return "RtpHead [CSRC_count=" + CSRC_count + ", extension=" + extension
				+ ", padding=" + padding + ", version=" + version
				+ ", payload_type=" + payload_type + ", marker=" + marker
				+ ", seq_num=" + seq_num + ", timestamp=" + timestamp
				+ ", SSRC=" + SSRC + "]";
	}
    
}
